package com.xjrsoft.module.customerTwo.AppManage.service_support_order.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.xjrsoft.common.page.ConventPage;
import com.xjrsoft.core.tool.utils.Func;
import com.xjrsoft.core.tool.utils.StringUtil;
import com.xjrsoft.core.mp.base.BaseService;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order.dto.ServiceSupportOrderTableListDto;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order.entity.ServiceSupportOrder;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order.entity.ServiceSupportOrderTable;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order.mapper.ServiceSupportOrderTableMapper;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order.service.IServiceSupportOrderService;
import com.xjrsoft.module.customerTwo.AppManage.service_support_order.service.IServiceSupportOrderTableService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lisen
 * @since 2024-04-23
 */
@Service
@AllArgsConstructor
public class ServiceSupportOrderTableServiceImpl extends BaseService<ServiceSupportOrderTableMapper, ServiceSupportOrderTable> implements IServiceSupportOrderTableService {
        private ServiceSupportOrderTable getByOrderId(Integer id){
               Wrapper wrapper =  Wrappers.<ServiceSupportOrderTable>query().lambda().eq(ServiceSupportOrderTable::getOrderId, id).eq(ServiceSupportOrderTable::getIscurrent,1);
               return getOne(wrapper);
        }
}